from dotenv import load_dotenv
from langchain_text_splitters import RecursiveCharacterTextSplitter

load_dotenv()
from langchain_openai import ChatOpenAI
from langchain.chains import LLMMatchChain

#初始化大模型
llm = ChatOpenAI()
#创建链
llm_math = LLMMatchChain.from_llm(llm)
#执行链
res = llm_math.invoke("10**3+100的结果是多少？")